//
//  UIImage+Stretch.h
//  CommentCell
//
//  Created by power on 2017/6/5.
//  Copyright © 2017年 powertorque. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Stretch)

/** 返回一张能够自由拉伸的图片 */
+ (UIImage *)bs_resizedImageWithImageStr:(NSString *)imageStr withLeft:(CGFloat)left andTop:(CGFloat)top;
+ (UIImage *)bs_resizedImageWithImage:(UIImage *)image withLeft:(CGFloat)left andTop:(CGFloat)top;
+ (UIImage *)bs_resizedImageWithImageStr:(NSString *)imageStr;
+ (UIImage *)bs_resizedImageWithImage:(UIImage *)image;

@end


@interface UIImage (Combine)

/** 根据颜色返回一张图片 */
+ (UIImage *)bs_imageWithColor:(UIColor *)color alpha:(CGFloat)alpha;
+ (UIImage *)bs_imageWithRGBColorRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
+ (UIImage *)bs_imageWithColor:(UIColor *)color size:(CGSize)size alpha:(CGFloat)alpha;

@end
